package com.example.demo.web;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("---web应用初始化成功---");
    }
    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("---web应用销毁之前---");
    }
}
